package com.res.share.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.res.share.model.ResUserScore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 积分明细 Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2021-09-13
 */
public interface ResUserScoreMapper extends BaseMapper<ResUserScore> {

    IPage<ResUserScore> findMyjifenList(@Param("page") Page<ResUserScore> page, @Param("userId") Integer userId);

    Integer findMyScoreTotal(@Param("userId") Integer userId);

    Integer findUserSignExits(@Param("userId") Integer userId);
}
